package io.seata.samples.nacos.common.enums;

import lombok.Getter;

/**
 * The enum Rsp status enum.
 *
 * @author Administrator
 */
@Getter
public enum RspStatusEnum {
    /**
     * SUCCESS
     */
    SUCCESS(200, "成功"),
    /**
     * Fail rsp status enum.
     */
    FAIL(9999, "失败"),
    /**
     * Exception rsp status enum.
     */
    EXCEPTION(500, "系统异常");

    private int code;
    private String message;

    RspStatusEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
